package com.tokenplus.thai.anetwork

import com.tokenplus.thai.data.*
import kotlinx.coroutines.*

object ApiToolReposity : ApiBaseReposity() {
    val mJob = Job()
    val mScope = CoroutineScope(mJob)

    fun fetchAppConfig(reqBase: ReqBase) {
        mScope.launch {
            try {
                val response =
                    ApiToolNetwork.fetchAppConfig(reqBase)
                if (response.code.equals("0000", true)) {
                    val obj = response.data
                }
            } catch (e: Exception) {
                e.printStackTrace()
            }
        }
    }

}